package com.whu.waterworks.service;

import java.util.List;

import com.whu.waterworks.dao.QualityRecordDataDao;
import com.whu.waterworks.model.Antisseptic;
import com.whu.waterworks.model.QualityNonNormol;
import com.whu.waterworks.model.QualityNormol;

/**
 * @author ZhouBin
 * @date 2016-4-12 上午9:30:10
 */
public class QualityRecordDataService {
	private QualityRecordDataDao qualityRecordDataDao;

	public QualityRecordDataDao getQualityRecordDataDao() {
		return qualityRecordDataDao;
	}

	public void setQualityRecordDataDao(QualityRecordDataDao qualityRecordDataDao) {
		this.qualityRecordDataDao = qualityRecordDataDao;
	}
	
	public List<QualityNormol> getQualityNormols(String waterPlantId,String starttime,String endtime){
		return qualityRecordDataDao.getQualityNormols(waterPlantId,starttime,endtime);
	}
	public List<QualityNonNormol> getQualityNonNormols(String waterPlantId,String starttime,String endtime){
		return qualityRecordDataDao.getQualityNonNormols(waterPlantId,starttime, endtime);
	}
	public List<Antisseptic> getAntisseptics(String waterPlantId,String startTime,String endTime){
		return qualityRecordDataDao.getAntisseptics(waterPlantId,startTime,endTime);
	}
	
	public String getQualityNormolStandardValue(String testItem){
		return qualityRecordDataDao.getQualityNormolStandardValue(testItem);
	}
	public String getQualityNonNormolStandardValue(String testItem){
		return qualityRecordDataDao.getQualityNonNormolStandardValue(testItem);
	}
	public String getAntissepticStandardValue(String testItem){
		return qualityRecordDataDao.getAntissepticStandardValue(testItem);
	}
	public String getWaterPlantById(String waterPlantCode) {
		return qualityRecordDataDao.getWaterPlantById(waterPlantCode);
	}
	public List<QualityNormol> getQualityNormolByIdAndTime(String waterPlantId,String time){
		return qualityRecordDataDao.getQualityNormolByIdAndTime(waterPlantId,time);
	}
	public List<QualityNonNormol> getQualityNonNormolByIdAndTime(String waterPlantId, String time){
		return qualityRecordDataDao.getQualityNonNormolByIdAndTime(waterPlantId,time);
	}
	public List<Antisseptic> getAntissepticByIdAndTime(String waterPlantId,String time){
		return qualityRecordDataDao.getAntissepticByIdAndTime(waterPlantId,time);
	}
}
